<?php
defined('_JEXEC') or die('Restricted access');
$pageid = JRequest::getVar('id', '');
//-- begin cut str
$str_data_1 = $this->items[0]->metakey;
$arr_str_1 = explode(';', $str_data_1);
$str_1_cut_1 = trim($arr_str_1[0]);
$str_1_cut_2 = trim($arr_str_1[1]);

$str_data_2 = $this->items[1]->metakey;
$arr_str_2 = explode(';', $str_data_2);
$str_2_cut_1 = trim($arr_str_2[0]);
$str_2_cut_2 = trim($arr_str_2[1]);
//-- edn cut str
?>
<div class="bg_content">
	<div class="bg_tt2 m12t">
    	<div class="title2">
        	<img src="<?php echo $this->baseurl ?>/templates/skovmarken/img/icon3.png" alt="" class="mid" />
        	<?php 
        		if ( $pageid == 4 )
        			echo "FT LABRADOR";
        		else
        			echo "FT Cocker spaniel";
        	?>            
        </div>
    </div>
    <div class="p15t p20l">
    	<p class="p10t orange uper"><b><?php echo $this->items[0]->title;?></b></p>
        <div class="w206 m10t float_left">
        	<a href="cocker_detail.html"><img src="<?php echo $this->items[0]->article_image;?>" alt="" class="bs1_1" /></a>
            <div class="bg_color1 m2t">
            	<div class="w145 m10l float_left"><?php echo $str_1_cut_1;?></div>
                <div class="float_right m10r red"><a href="index.php?option=com_content&view=article&layout=buddetail&id=<?php echo $pageid==4?"18":"20";?><?php echo $pageid==4?"&Itemid=2":"&Itemid=3";?>">Klik her</a></div>
                <div class="clear"></div>
            </div>
            <div class="bg_color1">
            	<div class="w145 m10l float_left"><?php echo $str_1_cut_2;?></div>
                <div class="float_right m10r red"><a href="index.php?option=com_content&view=article&layout=fulddetail&id=<?php echo $pageid==4?"22":"24";?><?php echo $pageid==4?"&Itemid=2":"&Itemid=3";?>">Klik her</a></div>
                <div class="clear"></div>
            </div>
            <div class="bg_color1">
            	<div class="m10l"><?php echo $this->items[0]->metadesc;?></div>
            </div>
        </div>
        <div class="w650 m10t float_right">
       	  	<?php echo $this->items[0]->introtext;?>
      	</div>
        <div class="clear"></div>
        <div class="line3">
        	<p class="orange uper"><b><?php echo $this->items[1]->title;?></b></p>
            <div class="w206 m10t float_left">
                <a href="cocker_detail.html"><img src="<?php echo $this->items[1]->article_image;?>" alt="" class="bs1_1" /></a>
                <div class="bg_color1 m2t">
                    <div class="w145 m10l float_left"><?php echo $str_2_cut_1;?></div>
                    <div class="float_right m10r red"><a href="index.php?option=com_content&view=article&layout=buddetail&id=<?php echo $pageid==4?"17":"19";?><?php echo $pageid==4?"&Itemid=2":"&Itemid=3";?>">Klik her</a></div>
                    <div class="clear"></div>
                </div>
                <div class="bg_color1">
                    <div class="w145 m10l float_left"><?php echo $str_2_cut_2;?></div>
                    <div class="float_right m10r red"><a href="index.php?option=com_content&view=article&layout=fulddetail&id=<?php echo $pageid==4?"21":"23";?><?php echo $pageid==4?"&Itemid=2":"&Itemid=3";?>">Klik her</a></div>
                    <div class="clear"></div>
                </div>
                <div class="bg_color1">
                    <div class="m10l"><?php echo $this->items[1]->metadesc;?></div>
                </div>
            </div>
            <div class="w650 m10t float_right">
                <?php echo $this->items[1]->introtext;?>
            </div>
            <div class="clear"></div>
        </div>
    </div>
</div>